package com.obas.event {
   import com.ease.framework.CommandCompletionEvent;

   import flash.events.Event;

   [Response(name="{RETURN_ID}", type="com.ease.framework.CommandCompletionEvent")]
   public class ItestOperationEvent extends Event {

      public static const REQUEST_ID:String = "ItestOperationEvent_Request";

      public static const RETURN_ID:String = "ItestOperationEvent_Return";

      public static const GET_PROJECT:int = 1;

      public static const GET_SCENARIO:int = 2;

      public static const GET_CASE:int = 3;

      public static const GET_FUNCTION:int = 4;

      public static const GET_SCRIPT:int = 5;

      public static const ADD_PROJECT:int = 6;

      public static const ADD_SCENARIO:int = 7;

      public static const UPDATE_SCENARIO:int = 71;

      public static const ADD_FUNCTION:int = 9;

      public static const UPDATE_FUNCTION:int = 91;

      public static const ADD_USECASE:int = 10;

      public static const ADD_USECASE_WITH_BUSINESSUSECASE:int = 101;

      public static const UPDATE_USECASE:int = 102;

      public static const ADD_SCRIPT:int = 11;

      public static const DELETE_PROJECT:int = 12;

      public static const DELETE_SCENARIO:int = 13;

      public static const DELETE_CASE:int = 14;

      public static const DELETE_FUNCTION:int = 15;

      public static const DELETE_USECASE:int = 16;

      public static const DELETE_SCRIPT:int = 17;

      public static const UPDATE_PROJECT:int = 18;

      public static const ADD_BUSINESSREPOSITORY:int = 19;

      public static const ADD_BUSINESSSCENARIO:int = 191;

      public static const ADD_BUSINESSUSECASE:int = 192;

      public static const ADD_BUSINESSFUNCTION:int = 193;

      public static const UPDATE_BUSINESSREPOSITORY:int = 20;

      public static const GET_BUSINESSREPOSITORY:int = 21;

      public static const GET_BUSINESSSCENARIO:int = 211;

      public static const GET_BUSINESSUSECASE:int = 212;

      public static const GET_BUSINESSFUNCTION:int = 213;

      public static const DELETE_BUSINESSREPOSITORY:int = 22;

      public static const DELETE_BUSINESSSCENARIO:int = 23;

      public static const DELETE_BUSINESSUSECASE:int = 24;

      public static const DELETE_BUSINESSFUNCTION:int = 25;

      private var _actionType:int = GET_PROJECT;

      private var _spec:Object=null;

      public function ItestOperationEvent(spec:Object, actionType:int = GET_PROJECT, type:String=null) {
         var typeId:String = type;
         if (type == null) {
            typeId=REQUEST_ID;
         }
         super(typeId, true, true);
         _spec = spec;
         _actionType=actionType;
      }

      public override function clone():Event {
         var event:ItestOperationEvent=new ItestOperationEvent(spec, actionType, type);
         return event;
      }

      public function get spec():Object {
         return _spec;
      }

      public function get actionType():int {
         return _actionType;
      }
   }
}